package com.zhitong.ztblog.services.servicesImp;

import com.zhitong.ztblog.entity.Log;
import com.zhitong.ztblog.mappers.LogMapper;
import com.zhitong.ztblog.services.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LogService implements ILogService {

    @Autowired
    private LogMapper logMapper;

    @Override
    public Log[] findAll() {
        Log[] logs = logMapper.findAll();
        return logs;
    }

    @Override
    public void insertLog(Log log) {
        logMapper.insertLog(log);
    }
}
